package sv.gob.mh.dgii.model;

// Generated Dec 10, 2007 4:52:21 PM by Hibernate Tools 3.2.0.beta7

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbResolucion generated by hbm2java
 */
@Entity
@Table(name = "TB_RESOLUCION", schema = "CATALOGOS", uniqueConstraints = {})
public class TbResolucion implements java.io.Serializable {

	// Fields    

	/**
	 * 
	 */
	private static final long serialVersionUID = 4905679730063910705L;

	private String cresolucion;

	private String cusuario;

	private String dresolucion;

	private Integer bverifCant;

	private Date fhingreso;

	private Integer boriginal;

	private Integer bstatus;

	private String cmodelo;

	private String claseResolucion;

	private Short nversion;

	private Set<DcResolucion> dcResolucions = new HashSet<DcResolucion>(0);

	private Set<DvResolPlantilla> dvResolPlantillas = new HashSet<DvResolPlantilla>(
			0);

	private Set<TbTasacionObligacion> tbTasacionObligacions = new HashSet<TbTasacionObligacion>(
			0);

	// Constructors

	/** default constructor */
	public TbResolucion() {
	}
	public TbResolucion(String cresolucion) {
		this.cresolucion = cresolucion;
	}

	/** minimal constructor */
	public TbResolucion(String cresolucion, String cusuario,
			String dresolucion, Integer bverifCant, Date fhingreso,
			Integer boriginal, Integer bstatus) {
		this.cresolucion = cresolucion;
		this.cusuario = cusuario;
		this.dresolucion = dresolucion;
		this.bverifCant = bverifCant;
		this.fhingreso = fhingreso;
		this.boriginal = boriginal;
		this.bstatus = bstatus;
	}

	/** full constructor */
	public TbResolucion(String cresolucion, String cusuario,
			String dresolucion, Integer bverifCant, Date fhingreso,
			Integer boriginal, Integer bstatus, String cmodelo,
			String claseresolucion, Short nversion,
			Set<DcResolucion> dcResolucions,
			Set<DvResolPlantilla> dvResolPlantillas,
			Set<TbTasacionObligacion> tbTasacionObligacions) {
		this.cresolucion = cresolucion;
		this.cusuario = cusuario;
		this.dresolucion = dresolucion;
		this.bverifCant = bverifCant;
		this.fhingreso = fhingreso;
		this.boriginal = boriginal;
		this.bstatus = bstatus;
		this.cmodelo = cmodelo;
		this.claseResolucion = claseresolucion;
		this.nversion = nversion;
		this.dcResolucions = dcResolucions;
		this.dvResolPlantillas = dvResolPlantillas;
		this.tbTasacionObligacions = tbTasacionObligacions;
	}

	// Property accessors
	@Id
	@Column(name = "C_RESOLUCION", unique = true, nullable = false, insertable = true, updatable = true, length = 2)
	public String getCresolucion() {
		return this.cresolucion;
	}

	public void setCresolucion(String cresolucion) {
		this.cresolucion = cresolucion;
	}

	@Column(name = "C_USUARIO", unique = false, nullable = false, insertable = true, updatable = true, length = 30)
	public String getCusuario() {
		return this.cusuario;
	}

	public void setCusuario(String cusuario) {
		this.cusuario = cusuario;
	}

	@Column(name = "D_RESOLUCION", unique = false, nullable = false, insertable = true, updatable = true, length = 40)
	public String getDresolucion() {
		return this.dresolucion;
	}

	public void setDresolucion(String dresolucion) {
		this.dresolucion = dresolucion;
	}

	@Column(name = "B_VERIF_CANT", unique = false, nullable = false, insertable = true, updatable = true, precision = 1, scale = 0)
	public Integer getBverifCant() {
		return this.bverifCant;
	}

	public void setBverifCant(Integer bverifCant) {
		this.bverifCant = bverifCant;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_INGRESO", unique = false, nullable = false, insertable = true, updatable = true, length = 7)
	public Date getFhingreso() {
		return this.fhingreso;
	}

	public void setFhingreso(Date fhingreso) {
		this.fhingreso = fhingreso;
	}

	@Column(name = "B_ORIGINAL", unique = false, nullable = false, insertable = true, updatable = true, precision = 1, scale = 0)
	public Integer getBoriginal() {
		return this.boriginal;
	}

	public void setBoriginal(Integer boriginal) {
		this.boriginal = boriginal;
	}

	@Column(name = "B_STATUS", unique = false, nullable = false, insertable = true, updatable = true, precision = 1, scale = 0)
	public Integer getBstatus() {
		return this.bstatus;
	}

	public void setBstatus(Integer bstatus) {
		this.bstatus = bstatus;
	}

	@Column(name = "C_MODELO", unique = false, nullable = true, insertable = true, updatable = true, length = 3)
	public String getCmodelo() {
		return this.cmodelo;
	}

	public void setCmodelo(String cmodelo) {
		this.cmodelo = cmodelo;
	}

	@Column(name = "CLASE_RESOLUCION", unique = false, nullable = true, insertable = true, updatable = true, length = 25)
	public String getClaseResolucion() {
		return this.claseResolucion;
	}

	public void setClaseResolucion(String claseresolucion) {
		this.claseResolucion = claseresolucion;
	}

	@Column(name = "N_VERSION", unique = false, nullable = true, insertable = true, updatable = true, precision = 4, scale = 0)
	public Short getNversion() {
		return this.nversion;
	}

	public void setNversion(Short nversion) {
		this.nversion = nversion;
	}

	@OneToMany( fetch = FetchType.LAZY, mappedBy = "tbResolucion")
	public Set<DcResolucion> getDcResolucions() {
		return this.dcResolucions;
	}

	public void setDcResolucions(Set<DcResolucion> dcResolucions) {
		this.dcResolucions = dcResolucions;
	}

	@OneToMany( fetch = FetchType.LAZY, mappedBy = "tbResolucion")
	public Set<DvResolPlantilla> getDvResolPlantillas() {
		return this.dvResolPlantillas;
	}

	public void setDvResolPlantillas(Set<DvResolPlantilla> dvResolPlantillas) {
		this.dvResolPlantillas = dvResolPlantillas;
	}

	@OneToMany( fetch = FetchType.LAZY, mappedBy = "tbResolucion")
	public Set<TbTasacionObligacion> getTbTasacionObligacions() {
		return this.tbTasacionObligacions;
	}

	public void setTbTasacionObligacions(
			Set<TbTasacionObligacion> tbTasacionObligacions) {
		this.tbTasacionObligacions = tbTasacionObligacions;
	}

}
